﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace VISS.API.Commons {
    public interface ILanguage {

        /// <summary>
        /// Insert new LanguageEnt
        /// </summary>
        /// <param name="item">LanguageEnt</param>
        /// <returns>return true if success, otherwise return false</returns>
        bool Insert(LanguageEnt item);
        /// <summary>
        /// Update LanguageEnt
        /// </summary>
        /// <param name="item">LanguageEnt</param>
        /// <returns>return true if success, otherwise return false</returns>
        bool Update(LanguageEnt item);
        /// <summary>
        /// Delete a LanguageEnt
        /// </summary>
        /// <param name="iD">ID of LanguageEnt need to be deleted</param>
        /// <returns>return true if success, otherwise return false</returns>
        bool Delete(short iD);

        /// <summary>
        /// Get all LanguageEnt
        /// </summary>
        /// <returns>return a list of LanguageEnt (empty list if no LanguageEnt exists)</returns>
        List<LanguageEnt> GetAll();
        /// <summary>
        /// Get single LanguageEnt
        /// </summary>
        /// <param name="iD">ID of LanguageEnt want get</param>
        /// <returns>return LanguageEnt (null if does not exists or error)</returns>
        LanguageEnt GetByID(short iD);
    }
}
